<template>
	<view>
		<view class="wx" v-if="isWechat"></view>
		<view class="content text-center">
			<image src="../../static/images/downTask.png" class="logo" mode="aspectFill"></image>
			<view class=" text-xl text-bold">哗啦任务</view>
			<view class="margin-top text-sm">请点击下方按钮下载哗啦任务APP</view>
			<view class="margin-top-xxl">
				<a class="xBtn bg-green" :href="item.url">
					<text>下载哗啦任务</text>
				</a>
			</view>
			<view class="margin-top-xxl">
				<view class="">如下载遇到问题，请拨打客服电话</view>
				<view class="margin-tb text-lg">
					<a href="tel:17724688747" style="text-decoration: none;font-weight: bold;">17724688747</a>
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isWechat: uni.tool.isWechat(),
				item: ''
			}
		},
		onLoad() {
			this.get();

		},
		methods: {
			get() {
				uni.http.post('data/getTaskAppDesc', {}, res => {
					this.item = res
				});
			}
		}
	}
</script>

<style>
	page {
		background-color: #fff;
	}

	.logo {
		width: 160rpx;
		height: 160rpx;
		margin: auto;
		margin-bottom: 30rpx;
	}

	.content {
		padding: 100rpx;
	}

	.xBtn {
		position: relative;
		display: flex;
		justify-content: center;
		align-items: flex-end;
		border-radius: 10rpx;
		overflow: hidden;
		text-decoration: none;
	}

	.version {
		font-size: 24rpx;
		background-color: red;
		position: absolute;
		top: 0rpx;
		right: 0rpx;
		height: 40rpx;
		line-height: 40rpx;
		padding: 0 10rpx;
	}

	.wx {
		position: fixed;
		left: 0;
		top: 0;
		background-color: rgba(0, 0, 0, .7);
		width: 100vw;
		height: 100vh;
		background-image: url(../../static/images/wx.png);
		background-size: 100%;
		background-position: 50% 54px;
		background-repeat: no-repeat;
		z-index: 999;
	}
</style>
